import pynotify

class Notify:
    def __init__(self):
        if not pynotify.init("Absynth"):
            sys.exit(1)
    def new(self, text):
        n = pynotify.Notification(text)
        if not n.show():
            print "Failed to send notification"
            sys.exit(1)